package br.ucb.sispro.control;

import java.util.List;

import br.ucb.sispro.model.Entity;

public interface IControl<E extends Entity> {
	public List<E> getListAll(E entity); 
	public Long save(E entity); 
	public void update (E entity); 
	public List<E> findByCriteria(E entity, String value); 
	public List<E> findByHQL(E entity, String value); 
	public void delete (E entity);
	public List<E> findByNamedQuery(String query,String valor);
	public E load(String entity,long id);
	public List<E> findByHQLLivre(Entity entity,String campoPesquisa, String value);

}
